Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow defining localeResolver in Configuration #12471

Closed

Conversation

rainboyan
Copy link
Contributor

Currently custom localeResolver only allow defining beans in resources.groovy, I think custom localeResolver and localeChangeInterceptor beans could be defined in Configuration, this will be benefit from Spring Boot @EnableAutoConfiguration with spring-boot-starters.

The priority order of loading Bean is,
GrailsPlugin > Configuration > resources.groovy

So, this PR will not change the default Grails way.

Define localResolver and localeChangeInterceptor bean in Configuration inplace of the Plugin
@rainboyan rainboyan marked this pull request as draft April 13, 2022 07:46
@rainboyan rainboyan closed this Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant